package entities;

import java.io.Serializable;
import javax.persistence.*;

@Entity
@Table(name="itemOC")
public class ItemOCBean implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Id
	private int nroItem; 
	
	
	@ManyToOne
	@JoinColumn(name="numero")
	private OrdenDeCompraBean orden;
	
	
	@ManyToOne
	@JoinColumn(name="codigoMat")
	private MaterialBean material;
	private int cantidad;

	

	public ItemOCBean() {		
	}
	
	public ItemOCBean(int nroItem, OrdenDeCompraBean orden,
			MaterialBean material, int cantidad) {
		super();
		this.nroItem = nroItem;
		this.orden = orden;
		this.material = material;
		this.cantidad = cantidad;
	}

	public MaterialBean getMaterial() {
		return material;
	}
	
	public int getNroItem() {
		return nroItem;
	}



	public void setNroItem(int nroItem) {
		this.nroItem = nroItem;
	}
	


	public void setMaterial(MaterialBean material) {
		this.material = material;
	}

	public int getCantidad() {
		return cantidad;
	}

	public void setCantidad(int cantidad) {
		this.cantidad = cantidad;
	}

}
